package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Answer;
import cn.wolfcode.trip.base.domain.AnswerComment;
import cn.wolfcode.trip.base.query.AnswerCommentQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IAnswerService {
    PageInfo listAll(QueryObject qo);

    void save(Answer answer);

    Answer getById(Long answerId);

    void saveByAnswerId(AnswerComment answerComment);

    void updateCommentCount(int commentCount, Long answerId);


    List<AnswerComment> getCommentByAnswerId(Long answerId);
}
